/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include "../core/DX头.h"
#include "缓存辅助.h"



struct S_DX缓存 : public S_GPU缓存 {
	//
	ComPtr<ID3DBlob> m_CPU_Buffer;
	//
	ComPtr<ID3D12Resource> m_GPU_Buffer;
	//ComPtr<ID3D12Resource> m_GPU_Buffer;
	ComPtr<ID3D12Resource> m_数据上传;




	S_DX缓存();



	uint32	f_创建内存对象(const void* c, void* ctx = 0, uint32 key = 0);

	void	f_Fill(const void* data, uint64 size, void* CommandList);


	S_GUP内存映射	f_map();
	void			f_unmap();

};


